<JSP:forward>的困惑

来源:百度知道 编辑:UC知道 时间:2024/06/25 23:32:41
forward_action_file.jsp内容如下
<%@ page language="Java" contentType="text/html;charset=gb2312"%>
<html>
<head><title>forward 动作范例页面</title></head>
<boby><div align="center">
<%out.println("<font size=6>include动作演示</font>");%><br>
<%out.println(" 书名:");%>
<%=request.getParameter("bookName")%><br>
<%out.println("作者:");%>
<%=request.getParameter("authorName")%><br>
</div></body>
</html>

forward_action.jsp内容如下:
<%@ page language="Java" contentType="text/html;charset=gb2312"%>
<html>
<head><title>forward 动作范例页面</title></head>
<body><div align="center">
<JSP:forward page="forward_action_file.jsp">
<JS

你没有刷新
加上这句在右面
out.flush();

flush 后才会把 out.print 的内容显示出来

不应该出问题的啊 我看参数都对的啊 你看你的forward_action_file.jsp 文件的路径有问题吗